#ifndef WIDGET_SETUP_LOCAL_H
#define WIDGET_SETUP_LOCAL_H



#include "players.h"
#include "widget_setup.h"
#include "gui.h"
#include <sstream>



//! @brief Gui class for loading maps and setting parameters for local game
class local_setup_widget: public setup_widget
{

	Q_OBJECT

public:

	/** @brief Creates part of the gui
	*	@param parent Qt parent
	*	@param flags Qt flags
	*/
	local_setup_widget( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
	

private:

	//! widget layout
	QVBoxLayout* layout;
	//! input field for map filename
	QLineEdit* load_i;
	//! input field for odject file filename
	QLineEdit* object_i;
	//! load map button
	QPushButton* load_b;
	//! load saved objects button - can be pressed when map is loaded
	QPushButton* object_b;
	//! next button - can be pressed when map is loaded
	QPushButton* next_b;
	

private slots:

	//! @brief Qt slot that jumps to buy screen
	void next();
	//! @brief Qt slot that loads map
	void load_map();
	//! @brief Qt slot that loads saved objects
	void load_objects();

};



#endif